<!-- <script setup lang="ts">
  import { getCodeApi } from '@/apis/user'
  import { useCounterStore } from '@/stores/counter'
const store = useCounterStore()
  // 测试获取验证码
  const getMobileCode = async () => {
    const res = await getCodeApi({ mobile: '13211112222', type: 'login' })
    console.log(res)
  }
</script>
<template>
  <view class="content">
    <button @click="getMobileCode">获取验证码</button>
    <button type="primary">按钮1</button>
    <button type="warn">按钮2</button>
  </view>
  <view>计数: {{ store.count }}</view>
  <view>双倍: {{ store.double }}</view>
  <button @click="store.increment()">加1</button>
  <button @click="store.decrement()">减1</button>
  <button @click="store.addNum()">11111111111</button>
  <view>{{ store.num }}</view>
</template> -->
